const formatMoney = (money, digits = 2) => {
  const intl = new Intl.NumberFormat(undefined, {
    minimumFractionDigits: digits,
    maximumFractionDigits: digits,
  });
  return intl.format(money);
};

export { formatMoney };
